package com.zzyl.mapper;

import com.zzyl.dto.ResourceDto;
import com.zzyl.entity.Resource;
import com.zzyl.vo.ResourceVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ResourceMapper {
    void insert(Resource resource);

    List<ResourceVo> list(Resource resource);

    Resource getById(String parentResourceNo);

    void updateById(Resource resource);

    void enableOrDisable(ResourceDto resourceDto);

    Resource getByResourceNo(String resourceNo);

    void delete(String resourceNo);
}
